package easymall.service;

import easymall.po.Products;
import easymall.pojo.MyProducts;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ProductsService {
	
	public List<Products> prodlist(Map<String, Object> map);
	public Products oneProduct(String pid);
	public List<Products> proclass(Integer category);
	
	public String save(MyProducts myproducts);
	
	//分页相关
	public List<Products> getProductsByPage(Integer page); //根据页号获取商品
	public int getTotalPageByProducts();
	
	//商品相关
	public String updatePruduct(MyProducts myproducts, String id); //更新
	public int delProduct(String id); //删除某个商品
}
